<html>
<head>
<script src="http://api.feedgraph.com/js/feedgraph.js"></script>

<script>

function init() {

	feedgraph.watch("/tweets/FeedGraph/occurred_in_tweet_obj", showTweet);
}

function showTweet(entry) {

	var obj = entry.Obj;

	if (console) {
		console.log(obj);
	}

	var span = document.createElement("span");
	span.innerHTML = "<b>" + obj.User.Screen_name + ":</b> " + obj.Text;
 
	document.body.appendChild(span);
	document.body.appendChild(document.createElement("br"));
}

</script>
</head>

<body onload=init()>
</body>
</html>
